import random

#red_ball = []

list_red = []
for i in range(1,34):
    list_red.append(i)

#print(list_red)
print("红球：",random.sample(list_red,6))
# while True:
#     # 生成一位随机数
#     a = random.randint(1, 34)
#
#     # 避免重复
#     if a not in red_ball:
#         # 把不重复的数字，添加到列表
#         red_ball.append(a)
#
#         # 返回6个不重复的红球
#         if len(red_ball) == 6:
#             print("红球:", red_ball)
#             break

# 生成蓝球
blue_ball = random.randint(1, 17)
print("蓝球:", blue_ball)
